package com.sprucetec.live.service;

import com.sprucetec.live.common.dto.PagedListDTO;
import com.sprucetec.live.common.dto.business.LiveAnchorDto;
import com.sprucetec.live.entity.LiveAnchor;
import com.sprucetec.live.entity.LiveCategory;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * @author chenkai
 * @date 2020/3/30 3:03 下午
 * @description:
 */
public interface LiveAnchorService {

    /**
     * 分页查询主播列表
     * @param liveAnchorDto
     * @return
     */
    PagedListDTO<LiveAnchor> getLiveAnchorPage(LiveAnchorDto liveAnchorDto);

    /**
     * 根据主播id，获取详情
     * @param id
     * @return
     */
    LiveAnchor getLiveAnchorInfo(Long id);

    /**
     * 新增主播
     * @param liveAnchor
     */
    void addLiveAnchor(LiveAnchor liveAnchor);

    /**
     * 修改主播
     * @param liveAnchor
     */
    void updateLiveAnchor(LiveAnchor liveAnchor);

    /**
     * 获取主播集合
     * @return
     */
    List<LiveAnchor> getLiveAnchorList();

    /**
     * 所有主播的id model map
     * @return
     */
    Map<Long, LiveAnchor> getAllAnchorMap();
}
